package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.ProductBean;

import java.time.LocalDate;

public interface IProductService {
    public  int PAGESIZE=3;

    /**
     * 动态分页查询商品
     * @param pageNO
     * @param name
     * @param startDate
     * @param endDate
     * @return
     */
    public IPage<ProductBean>findByItem(int pageNO, String name, LocalDate startDate,LocalDate endDate);

    /**
     * 查询商品同时查询卖出数量
     * @param id
     * @return
     */
    public  ProductBean findById(int id);
}
